<template>
  <div class="index">
    <el-tabs v-model="activeName">
      <el-tab-pane label="上传" name="upload">
        <FileUpload />
      </el-tab-pane>
      <el-tab-pane label="下载" name="download">
        <FileDownload />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import FileUpload from "./FileUpload.vue";
import FileDownload from "./FileDownload.vue";
import Bus from "@/utils/bus";

export default {
  name: "FileIndex",
  components: {
    FileUpload,
    FileDownload,
  },
  data() {
    return {
      activeName: 'upload'
    }
  },
  created() {
    // Bus.$on('reloadFileList', msg => {
    //   this.activeName = msg;
    // })
  },
  methods: {
  },
}

</script>

<style scoped>
.index {
  width: 800px;
  margin: 0 auto;
}
</style>